Regular expressions provide a more powerful way to search for window or control properties that include dynamically generated text, such as a window title or button label. When a property used as search criteria includes dynamically generated text, QA Wizard Pro may not be able to find the window or control during playback. To make sure QA Wizard Pro finds the window or control, you can use a regular expression as the expected value to search for a pattern match.
For example, in Helix ALM, the edit window title can be either Edit Issue #x or Edit Record #x depending on the project configuration, where x corresponds to the assigned issue number (e.g., Edit Issue #2). To make sure QA Wizard Pro finds the window, Matches regex is selected in the Action column and the expected value is replaced with Edit Issue|Record #. When the script runs, QA Wizard Pro successfully finds the edit issue or edit record window because the expected value matches Edit Issue # or Edit Record #, regardless of the number in the window title.
1. Select a window or control in the Application Repository pane and choose File > Properties.
The Properties dialog box opens with the Search Method tab selected.
2. In the row for the property set as search criteria, select Matches regex as the Action used to search for the expected value. Selected properties are used as search criteria for the window or control.
3. Enter the regular expression as the Expected Value. QA Wizard Pro supports .NET regular expressions.
4. Click OK to save the changes.